//
// Source code recreated from a .class file by IntelliJ IDEA
// (powered by Fernflower decompiler)
//

package commands;

import common.ByteStream;

public class StartAnimalGoods extends LogicCommand {
    private final int cmdId = 9;
    private final int animalId;

    public StartAnimalGoods(int tt, int animalId) {
        super(tt);
        this.animalId = animalId;
    }

    public int getCommandId() {
        return 9;
    }

    public void encode(ByteStream stream) {
        stream.writeInt(9);
        stream.writeInt(this.animalId);
        stream.writeInt(this.ticksWhenTouch().intValue());
    }
}
